package com.zp.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zp
 * @description
 * @created 2021/12/1 15:53
 */
@Configuration
public class MyConfig {

    @Bean
    public ClientConfiguration clientConfiguration(){
        return new ClientConfiguration();
    }

    @Bean
    public StartReadConfiguration startReadConfiguration(){
        return new StartReadConfiguration();
    }

    @Bean
    public RefreshScope refreshScope(){
        return new RefreshScope();
    }

    @Bean
    public MyBeanDefinitionRegistry myBeanDefinitionRegistry(){
        return new MyBeanDefinitionRegistry();
    }

    @Bean
    public ConfigClientService configClientService(){
        return new ConfigClientService();
    }
}
